﻿@{
    Layout = null;
}
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Language" content="zh-cn" />
    <meta name="keywords" content="关键词" />
    <meta name="description" content="描述" />
    <title>生意汇-国内领先商机服务平台</title>
    <link rel="stylesheet" href="/CSS/global.css" type="text/css" />
    <link rel="stylesheet" href="/CSS/login.css" type="text/css" />
    <link rel="stylesheet" href="/CSS/register.css" type="text/css" />   
    <script src="/Script/jquery.min.js" type="text/javascript"></script>
    <script src="/Script/valiDator/formValidator.js" type="text/javascript"></script>
    <script src="/Script/valiDator/formValidatorRegex.js" type="text/javascript"></script>
    <script src="/Script/artDialog/jquery.artDialog.source.js?skin=chrome" type="text/javascript"></script>
    <script src="/Script/district.js" type="text/javascript"></script>

</head>
<body>

    <!--S登录头部-->
    <div class="login_head">
        <div class="g_logo">
            <a href="#" title="生意汇">
                <img src="/images/login/logo.jpg" alt="生意汇" /></a></div>
        <div class="reg_welcome">
            <span>欢迎注册</span><br />
            发布产品、发布求购、订阅商机、在线洽谈,您都即将拥有！</div>
        <div class="reg_top blue">
            <a href="#">登录</a><span>|</span><a href="#">帮助中心</a><span>|</span><a href="#">产品</a><span>|</span><a
                href="#">求购</a><span>|</span><a href="#">企业</a></div>
    </div>
    <!--E登录头部-->
    <div class="reg_con">
        <div class="reg_con_login">
            已经是会员，现在去<a href="#" class="blue">登录</a></div>
        <div class="reg_con_left">
            <div class="reg_block1">
                欢迎注册生意汇（<font class="red">* </font>为必填项）<font class="orange">注意事项：注册信息人工审核，信息不全，不实，垃圾信息，重复注册等一律删除。</font></div>
            <form id="form1" name="form1" method="post" action="">
            <div class="reg_block2">
                <ul>
                    <li><strong><font class="red">*</font> 会员身份</strong>
                        <input id="xiaoshou" type="radio" name="shenfen" value="0" checked="checked" /><label
                            for="ddlSex_0">卖家</label>
                        <input id="caigou" type="radio" name="shenfen" value="1" /><label for="ddlSex_1">买家</label>&nbsp;&nbsp;
                       @* <input id="other" type="radio" name="shenfen" value="2" />两者都是 *@
                    </li>

                    <li><strong><font class="red">&nbsp;&nbsp;*</font> 用户名</strong>
                        <input type="text" name="txtName" id="txtName" value="" class="reg_UserName" /> 
                        <div class="divAccountNotice" style="position:absolute; left:410px; z-index:10;"></div>
                        <span id="txtNameTip"  ></span>
                     
                    </li>


                    <li><strong><font class="red">*</font> 设置密码</strong>
                        <input type="password" name="txtPwd" id="txtPwd" value="" class="reg_UserName" />
                        <div class="divAccountNotice" style="position: absolute; left: 410px; z-index: 10;">
                       
                        </div>
                         <span id="txtPwdTip"  ></span>
                    </li>

                    <li><strong><font class="red">*</font> 确认密码</strong>
                        <input type="password" name="txtPwd2" value="" id="txtPwd2"  class="reg_UserName" />
                        <div class="divAccountNotice" style="position: absolute; left: 410px; z-index: 10;">
                        
                        </div>
                        <span id="txtPwd2Tip"  ></span>
                     </li>

                    <li class="reg_dashed"><strong><font class="red">*</font> 电子邮箱</strong>
                        <input type="text" name="txtEmail" id="txtEmail" class="reg_UserName" />
                     
                        <div class="divAccountNotice" style="position: absolute; left: 410px; z-index: 10;">
                        
                        </div>
                         <span id="txtEmailTip" ></span>
                       </li>

                    <li><strong><font class="red">*</font> 公司名称</strong>
                        <input type="text" name="txtCompName" id="txtCompName" class="reg_UserName" value="" />
                        <div class="divAccountNotice" style="position: absolute; left: 410px; z-index: 10;">
                        </div>
                        <span id="txtCompNameTip"></span>
                    </li>


                    <li><strong><font class="red">&nbsp;&nbsp;*</font> 联系人</strong>
                        <input type="text" name="txtRealName" id="txtRealName" class="reg_Contact" value="" />
                        <input id="man" name="sex" type="radio" value="1" checked="checked" /><label for="ddlSex_0">先生</label>
                        <input id="mm" type="radio" name="sex" value="0" /><label for="ddlSex_1">女士</label>
                        <div class="divAccountNotice" style="position: absolute; left: 410px; z-index: 10;">
                        </div>
                        <span id="txtRealNameTip" ></span>
                    </li>

                    <li><strong><font class="red">*</font> 手机号码</strong>
                        <input name="txtMobile" id="txtMobile" type="text"  value="" class="reg_UserName" />
                        <div class="divAccountNotice" style="position: absolute; left: 410px; z-index: 10;">
                        </div> 
                        <span id="txtMobileTip" ></span>
                    </li>


                    <li><strong><font class="red">&nbsp;&nbsp;&nbsp;</font> 常用QQ</strong>
                      <input  type="text" name="txtQQ" id="txtQQ" class="reg_UserName" value=""/>
                        <div class="divAccountNotice" style="position: absolute; left: 410px; z-index: 10;">
                        </div>
                    </li>
                    <li class="reg_address"><strong><font class="red">*</font> 所在地区</strong>
                    <select id="selectProvince" name="selectProvince"class="ddlArea_p"  ></select>
                    <select id="selectCity" name="selectCity" class="ddlArea_t" ></select>
                    <select id="selectArea" name="selectArea" class="ddlArea_q" ></select>
                                <input type="hidden" id="shengID1" name="sheng" />
                                <input type="hidden" id="shiID1" name="shi" />
                                <input type="hidden" id="diquID1" name="diqu" />
                      
                    </li>
                    <li class="reg_address"><strong><font class="red">*</font> 主营行业</strong>
                       <select id="ddlArea_z"  name="ddlArea_z" class="ddlArea_z"  >
                     @foreach (var item in ViewBag.Public_IndustriesDT.Rows)
                     {
                         <option value="@item["Id"]" >
                                @item["ChsName"]
                         </option>
                     }
                     </select>
                   
                    </li>
                
                    <li><strong><font class="red">&nbsp;&nbsp;*</font> 验证码</strong>
                       <input type="text" value="" name="txtCheckCode" class="reg_Validator" id="txtCheckCode" maxlength="6"  />
                       <img id="imgCode" width="132" height="34" style="vertical-align: middle" src="/CheckCode/CreateCodeImg" alt="验证码" />
                       <a href="###" id="Change" class="e_changeImg">看不清换一张</a>
                        <div class="divValidatorNotice" style="position: absolute; left: 500px; z-index: 10;">
                        </div>
                        <span id="txtCheckCodeTip" class="blue"></span> 
                     
                    </li>
                    <li>
                        <input name="cbAllow" id="cbAllow" type="checkbox" checked="checked" />
                        <a href="#" target="_blank" class="blue">我已经阅读并接受生意汇用户协议</a> </li>
                </ul>
            </div>
            <div class="reg_submit">
                <input type="image" id="imgBtn" src="/images/register/submit.jpg" value="立即注册"/>
            </div> <img id="img_waiting" src="/images/register/ajaxwaiting.gif" style="display: none;" />
            </form>
        </div>
        <div class="reg_con_right">
            <div class="con_right_1">
                <strong>生意汇</strong>为企业提供在线做生意、结商友的信息平台。</div>
            <div class="con_right_2 grey">
                <span class="dred" style="font-size: 20px;">注册生意汇</span><br />
                立即开启财富大门</div>
            <div class="con_right_3">
                <div class="con_right_3_1 grey">
                    <b><font style="color: #000000; line-height: 30px;">注册成功，您即可：</font></b><br />
                    免费开通商铺发布产品<br />
                    免费品牌推广，树立企业形象<br />
                    免费发布供应信息，轻松坐等订单<br />
                    搜索求购信息，主动出击找买家<br />
                    海量产品信息，轻松甄别筛选<br />
                    免费发布求购信息，节约采购成本<br />
                    降低采购风险，共建诚信交易<br />
                </div>
                <div class="con_right_3_2">
                    你想在流量上万的网站上发布广告嘛，赶快注册吧！</div>
                <div class="con_right_3_3 dred">
                    抢占广告位，机会不容错过！</div>
            </div>
            <div class="blue" style="text-align: center; height: 40px; line-height: 40px;">
                如需帮助，拨打13253532256</div>
        </div>
    </div>
    <div class="clear">
    </div>
    <div class="opinion">
        <a href="#">欢迎对注册页面提出宝贵建议</a></div>
    <div class="clear">
    </div>
    <div class="login_footer">
        <a href="#">生意汇介绍</a><span>|</span><a href="#">广告服务</a><span>|</span><a href="#">联系我们</a><span>|</span><a
            href="#">产品信息</a><span>|</span><a href="#">求购信息</a><span>|</span> <a href="#">明星企业</a><span>|</span><a
                href="#">疑难解答</a><span>|</span><a href="#">公司新闻</a><span>|</span><a href="#">帮助中心</a><span>|</span><a
                    href="#">友情链接</a> <span>|</span><a href="#">意见反馈</a> <span>|</span>
        <a href="#">站长地图</a>
    </div>
  </body>
<script language="javascript" type="text/javascript">
 $(function () {
       //绑定省市地区
        $("#selectProvince").change(function () {
            $("#shengID1").val(this.value);
        });
        $("#selectCity").change(function () {
            $("#shiID1").val(this.value);
        });
        $("#selectArea").change(function () {
            $("#diquID1").val(this.value);
        });

        qhwDistrict.provinceSeleter = $("#selectProvince"); //绑定省份控件
        qhwDistrict.citySeleter = $("#selectCity"); //绑定城市控件
        qhwDistrict.areaSeleter = $("#selectArea"); //绑定地区控件

        qhwDistrict.defaultProvinceID = ""; //省份初始值
        qhwDistrict.defaultCityID = ""; //城市初始值
        qhwDistrict.defaultAreaID = ""; //地区初始值
        qhwDistrict.bindData(); //开始绑定数据
        //验证表单信息
        $.formValidator.initConfig({ formID: "form1", onError: function (msg) { }, theme: "ArrowSolidBox", onSuccess: function () { AddInfo(); } });
        //用户名
        $("#txtName").formValidator({ onShow: "不支持中文命名,6~18个字符,英文、数字、下划线均可.", onFocus: "不支持中文命名,6~18个字符,英文、数字、下划线均可.", onCorrect: "√" }).inputValidator({ min: 6, max: 18, onError: "注意：用户名会成为是金铺域名前缀，请认真填写。" }).regexValidator({ regExp: "username", dataType: "enum", onError: "您输入的用户名格式不正确，请确认" })
                            				.ajaxValidator({
                                                type: "POST",
                            			        url: "/ajax/Account/CheckUserName.ashx",
                            				    datatype: "text",
                            				    success: function (value) {
                            				        if (value == "true") {
                            				            return true;
                            				        }
                            				        return "该用户名已被注册";
                            				    },
                            				    buttons: $("#imgBtn"),
                            				    error: function () { $("#txtNameTip").html("服务器正忙，请重试"); },
                            				    onWait: "正在验证合法性，请稍候...",
                            				    onError: "该用户名已被注册"
                            				});
        //密码
        $("#txtPwd").formValidator({ onShow: "6~16个字符，区分大小写", onFocus: "6~16个字符，区分大小写", onCorrect: "√" }).inputValidator({ min: 6, max: 16, empty: { leftEmpty: false, rightEmpty: false, emptyError: "密码两边不能有空符号" }, onError: "密码长度有误，请确认" }).compareValidator({ desID: "txtName", operateor: "!=", onError: "密码不能与用户名相同" });
        //密码确认
        $("#txtPwd2").formValidator({ onShow: "请再输入一遍您上面填写的密码", onFocus: "请再输入一遍您上面填写的密码", onCorrect: "√" }).inputValidator({ min: 6, max: 16, empty: { leftEmpty: false, rightEmpty: false, emptyError: "确认密码两边不能有空符号" }, onError: "确认密码不能为空，请确认" }).compareValidator({ desID: "txtPwd", operateor: "=", onError: "两次密码不一致,请确认" });
        //邮箱
        $("#txtEmail").formValidator({ onShow: "请输入您常用的电子邮箱，方便您找回密码！", onFocus: "请输入您常用的电子邮箱，方便您找回密码！", onCorrect: "√" }).inputValidator({ min: 3, onError: "邮箱是找回金铺密码的重要条件，请谨慎填写。" }).regexValidator({ regExp: "email", dataType: "enum", onError: "请填写有效的电子邮箱，如xxx@qq.com" }).ajaxValidator({
            type: "POST",
            url: "/ajax/Account/CheckUserEmail.ashx",
            datatype: "text",
            success: function (value) {
                if (value == "true") {
                    return true;
                }
                return "该邮箱地址已被注册";
            },
            buttons: $("#imgBtn"),
            error: function () {
                $("#txtEmailTip").html("服务器正忙，请重试");
            },
            onWait: "正在验证合法性，请稍候...",
            onError: "网络异常"

        });
        //QQ
        $("#txtQQ").formValidator({ empty: true, onFocus: "请输入QQ号码" }).regexValidator({ regExp: "qq", dataType: "enum", onError: "QQ格式不正确！" });
      
       
        $("#txtRealName").formValidator({ onshow: "我们将保障您信息的隐私，请如实填写", onFocus: "我们将保障您信息的隐私，请如实填写", onCorrect: "√" }).inputValidator({ min: 2, onError: "不能少于2个字！" }).regexValidator({ regExp: "chinese", dataType: "enum", onError: "您输入的格式不正确，请输入中文" });
        $("#txtMobile").formValidator({ onshow: "请输入你的手机号码", onCorrect: "√" }).inputValidator({ min: 11, max: 11, onerror: "手机号码必须是11位的,请确认" }).regexValidator({ regExp: "mobile", dataType: "enum", onError: "你输入的手机号码格式不正确，请正确输入" });
        $("#txtCompName").formValidator({ onshow: "请输入你的公司名称", onFocus: "请输入你的公司名称", onCorrect: "√" }).inputValidator({ min: 10, max: 100, onError: "公司名称有误（5-50字以内）！" }).regexValidator({ regExp: "compname", dataType: "enum", onError: "公司格式有误,需汉字,不能全数字（5-50字以内）" })
                        .ajaxValidator({
                            type: "POST",
                            url: "/ajax/Account/CheckCompanyName.ashx",
                            datatype: "text",
                            success: function (value) {
                                if (value == "true") {
                                    return true;
                                }
                                return "该公司名已被注册";
                            },
                            buttons: $("#imgBtn"),
                            error: function () { $("#txtNameTip").html("服务器正忙，请重试"); },
                            onWait: "正在验证合法性，请稍候...",
                            onError: "该公司名已被注册"
                        });
        //$("#txtSellProduct").formValidator({ onshow: "请输入你的主营产品", onFocus: "请输入你的主营产品,逗号分隔！", onCorrect: "√" }).inputValidator({ min: 1, max: 100, onError: "主营产品不能为空！" });
        $("#selectProvince").formValidator({ onshow: "请选择贵公司的所在省份", onFocus: "请选择贵公司的所在省份", onCorrect: "√", tipID: "areaTip" }).inputValidator({ min: 1, max: 50, onError: "请选择贵公司的所在省份！" });
        $("#selectCity").formValidator({ onshow: "请选择贵公司的所在地市", onFocus: "请选择贵公司的所在地市", onCorrect: "√", tipID: "areaTip" }).inputValidator({ min: 1, max: 50, onError: "请选择贵公司的所在省份！" });
        $("#selectArea").formValidator({ onshow: "请选择贵公司的所在县区", onFocus: "请选择贵公司的所在县区", onCorrect: "√", tipID: "areaTip" }).inputValidator({ min: 1, max: 50, onError: "请选择贵公司的所在省份！" });
        $(":checkbox[name='cbAllow']").formValidator({ onShow: "", onFocus: "", onCorrect: "" }).inputValidator({ min: 1, onError: "请您认真阅读协议书" });
        //验证码
        $("#txtCheckCode").formValidator({ onShow: "请输入验证码!", onFocus: "请输入验证码", onCorrect: "√" }).inputValidator({ min: 1, max: 10, onError: "验证码输入有误，请重新输入" })
        .ajaxValidator({
            type: "POST",
            url: "/ajax/Account/CheckCode.ashx",
            datatype: "text",
            success: function (value) {
                if (value == "true") {
                    return true;
                }
                alert(value);
                return "验证码输入有误";
            },
            buttons: $("#imgBtn"),
            error: function () {
                $("#txtCheckCodeTip").html("服务器正忙，请重试");

            },
            onWait: "正在核对验证码...",
            onError: "验证码输入有误"
        });

    });

</script>
   <script type="text/javascript">
       //为同意条款 不能提交
       var _Iscb = $("input[name='cbAllow']").attr('checked');
       if (_Iscb == "checked") {
           $("#cbAllow").val("2");
       }
       $("input[name='cbAllow']").click(function () {
           var is_checked = $("input[name='cbAllow']").attr('checked');

           if (is_checked == "checked") {
               $("#cbAllow").val("2");
           }
           else {
               $("#cbAllow").val("1");
           }
       });
    $(function () {
        $("#Change").click(function () {
            // ChangeImgCode();
            document.getElementById('imgCode').src = '/CheckCode/CreateCodeImg?' + Math.random(); 
        });
    });
    </script>

</html>
